﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="fhdb" content="true">
    <title>提现列表</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="stylesheet" href="css/withdrawalList.css">
    <script type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
    <div class="backBox" onClick="javascript:history.back(-1);">
        <span class="glyphicon glyphicon-chevron-left"></span>
    </div>
    <div class="topTitle ">提现列表</div>
    <table class="table">
        <thead>
          <tr>
            <th width="10%" style="text-align:center">状态</th>
            <th width="10%" style="text-align:center">金额</th>
            <th width="20%" style="text-align:center">时间</th>
          </tr>
        </thead>
        <tbody id="withdraw">
        </tbody>
      </table>
      <div class="loaded">已加载全部数据</div>
</body>
<script>
    $(document).ready(function () {
        $.ajax({
            type: "post",
            url: "../../BaseRefWeb.aspx?stype=ISpWithdrawFun&method=GetWebFkId&type=sp",
            success: function (result) {
                if (result != "") {
                    var data = JSON.parse(result);
                    console.log(data);
                    if (data.msg == "_timeout") {
                        window.location.href = "../UserLogin/Login.html";
                    }
                    else {
                        var html = '';
                        for (var i = 0; i < data.length; i++) {
                            html += '<tr>';
                            if (data[i].TB_TX_STATE == false) {
                                html += '<td style="text-align:center">审核中</td>';
                            }
                            else {
                                html += '<td style="text-align:center">已打款</td>';
                            }
                            html += '<td style="text-align:center">' + data[i].TB_TX_PRICE + '</td><td style="text-align:center">' + data[i].TB_ADDTIME + '</td>';
                            html += '</tr>';
                        }
                        $("#withdraw").append(html);
                    }
                }
            }
        });
    })
</script>
</html>